list1=[1,2,1,3,5,5]
list2=[]

for i  in list1:
    if i not in list2:
        list2.append(i)
print(list2)

with open('text.txt','r',encoding='utf8') as f:
    list1=[
        tuple([ # 形成了列表里的小元组
            int(j.strip())
            for j in i.split(',')
        ])
        for i in f.readlines()
    ]
print(list1)

# str1="(1+2)+(3+5)"
# for i in str1:




